package com.is.add.enmus;


import com.is.add.util.KeyValue;

import java.util.ArrayList;
import java.util.List;

/**
 * 支付类型
 * Created by jackie on 2016/5/7.
 */
public enum PayType {
    ALIPAY("支付宝"),VIP("会员卡"),FREE("免费"),WEIXIN("微信");

    private String text;

    PayType(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public static List<KeyValue> toList() {
        List<KeyValue>  list = new ArrayList<>();
        for (PayType v: PayType.values()) {
            list.add(new KeyValue(v.name(), v.getText()));
        }
        return list;
    }
}
